import {Pipe, PipeTransform} from '@angular/core';

@Pipe({
  name: 'emptyCheckPipe'
})
export class EmptyCheckPipe implements PipeTransform {

  transform(value: any, type: number, args?: any): any {
    if (type == 0)
      return value == null || value == '' ? "--" : value;
    else if (type == 1)
      return value == null || value == '' ? "0" : value;
    else if (type == 2)
      return value == null || value == '' ? "0.00" : value
  }

}

